package cn.wolfcode.wolfcodemall.service;

import cn.wolfcode.wolfcodemall.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {

    List<User> selectAll();

    List<User> selectAll(String name);

    void save(User user);

    User login(String username,String password);

    int updateByPrimaryKey(User record);

    User selectByPrimaryKey(Integer user1);

    User selectByUserId (Integer user);
}
